//
//  WmcUploadImageModel.swift
//  YPWatermarkCamera
//
//  Created by 周诗松 on 2022/4/1.
//

import Foundation

class WmcUploadImageModel: YPNetworkJsonProtocol {
    // Lifecycle

    required init() {}

    // Internal

    /// uuid
    var uuid: String = NSUUID().uuidString

    /// 照片路径
    var photoPath: String = ""

    /// 水印类型
    var watermarkType: String = "0"

    /// 水印信息
    var watermarkInfo: String = ""

    /// 拍照时间
    var takePhotoTime: TimeInterval = Date().timeIntervalSince1970

    /// 是否正在上传
    var uploading: Bool = false
    
    func mapping(mapper: HelpingMapper) {
        mapper <<< self.photoPath <-- "photo_path"
        mapper <<< self.watermarkType <-- "watermark_type"
        mapper <<< self.watermarkInfo <-- "watermark_info"
        mapper <<< self.takePhotoTime <-- "take_photo_time"
    }
}
